package com.zqh.apiproductcommentquery.service.impl;

import com.zqh.apiproductcommentquery.service.ApiProductCommentQueryService;
import com.zqh.myfmmall.clients.ProductCommentQueryClient;
import com.zqh.myfmmall.result.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-02-18 2:19
 */
@Service("apiProductCommentQueryService")
public class ApiProductCommentQueryServiceImpl implements ApiProductCommentQueryService{
    @Autowired
    private ProductCommentQueryClient productCommentQueryClient;

    @Override
    public Result page(Integer pageNum, Integer pageSize, String productId) {
        return productCommentQueryClient.page(pageNum, pageSize, productId);
    }

    @Override
    public Result retrieveCommentsCount(String productId) {
        return productCommentQueryClient.retrieveCommentsCount(productId);
    }
}
